Mon Feb 11 14:31:53 2002 Owen Taylor <otaylor@redhat.com>
* pixops/pixops.c (bilinear_make_weights): Fix handing of
overall alpha.
+Mon Feb 11 14:31:53 2002 Owen Taylor <otaylor@redhat.com>
+
+ * pixops/pixops.c (bilinear_make_weights): Fix handing of
+ overall alpha.
+
2002-02-10 Matthias Clasen <matthias@local>
* test-loaders.c (main): Enable some tests which should work
*(pixel_weights + n_x * i + j) = weight;
}
- *(pixel_weights + n_x * n_y - 1) += 65536 - total;
+ *(pixel_weights + n_x * n_y - 1) += (int)(0.5 + 65536 * overall_alpha) - total;
}
}
}
total += weight;
}
- *(pixel_weights + n_x * n_y - 1) += 65536 - total;
+ *(pixel_weights + n_x * n_y - 1) += (int)(0.5 + 65536 * overall_alpha) - total;
}
g_free (x_weights);
total += weight;
}
- *(pixel_weights + n_x * n_y - 1) += 65536 - total;
+ *(pixel_weights + n_x * n_y - 1) += (int)(0.5 + 65536 * overall_alpha) - total;
}
}